-- GENERATED SPELL FOR [Thistleshrub Rootshaper] --


function spell0_5485(pUnit, Event) --@Earthgrab Totem,Self--
pUnit:FullCastSpellOnTarget(8376,pUnit)
pUnit:RegisterEvent('Sorts_5485', 30500, 1)
end

function Sorts_5485(pUnit, Event)
local choix_sorts_5485 = math.random(0, 0)
if choix_sorts_5485 == 0 then
pUnit:RegisterEvent('spell0_5485', 1, 1)
end
end

function mob5485_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5485', math.random(1500, 3000), 1)
end

function mob5485_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5485_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5485_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5485, 1, 'mob5485_Action')
RegisterUnitEvent(5485, 2, 'mob5485_Leave')
RegisterUnitEvent(5485, 3, 'mob5485_Kill')
RegisterUnitEvent(5485, 4, 'mob5485_Die')
